package com.company;

import com.company.pattern.SingletonHungry;
import com.company.pattern.SingletonLazy;

public class Main {

    public static void main(String[] args) {
        //饿汉式单例模式
        SingletonHungry.getInstance().test();

        //懒汉式单例模式
        SingletonLazy.getInstance().test();
    }

}
